func runtime.getg

270 uses

	runtime (current package)
		arena.go#L477: 	if mp.gsignal == getg() {
		arena.go#L766: 	if mp.gsignal == getg() {
		arena.go#L831: 		if inittrace.active && inittrace.id == getg().goid {
		atomic_pointer.go#L34: 	buf := getg().m.p.ptr().wbBuf.get2()
		cgo.go#L85: 	g := getg()
		cgo_sigaction.go#L47: 			g = getg()
		cgocall.go#L147: 	mp := getg().m
		cgocall.go#L200: 	getg().m.winsyscall = winsyscall
		cgocall.go#L302: 	gp := getg()
		cgocall.go#L383: 	gp := getg()
		cgocheck.go#L42: 	gp := getg()
		chan.go#L249: 	gp := getg()
		chan.go#L613: 	gp := getg()
		checkptr.go#L91: 	if gp := getg(); gp.stack.lo <= uintptr(p) && uintptr(p) < gp.stack.hi {
		coro.go#L43: 	gp := getg()
		coro.go#L67: 	gp := getg()
		coro.go#L78: 	gp := getg()
		coro.go#L89: 	gp := getg()
		debug.go#L99: 	gp := getg()
		debug.go#L118: 	gp := getg()
		debugcall.go#L34: 	if getg() != getg().m.curg {
		debugcall.go#L37: 	if sp := getcallersp(); !(getg().stack.lo < sp && sp <= getg().stack.hi) {
		debugcall.go#L110: 	gp := getg()
		debugcall.go#L211: 	gp := getg()
		debugcall.go#L220: 	getg().schedlink.set(callingG)
		debuglog.go#L112: 	gp := getg()
		heapdump.go#L697: 	gp := getg()
		iface.go#L137: 	if getg().m.mallocing != 0 {
		lock_futex.go#L56: 	gp := getg()
		lock_futex.go#L133: 	gp := getg()
		lock_futex.go#L159: 	gp := getg()
		lock_futex.go#L184: 	gp := getg()
		lock_futex.go#L230: 	gp := getg()
		lock_futex.go#L241: 	gp := getg()
		lockrank_off.go#L42: 	releasem(getg().m)
		malloc.go#L1029: 		if inittrace.active && inittrace.id == getg().goid {
		malloc.go#L1044: 	if mp.gsignal == getg() {
		malloc.go#L1279: 		if inittrace.active && inittrace.id == getg().goid {
		malloc.go#L1337: 		assistG = getg()
		malloc.go#L1369: 		if getg().preempt {
		malloc.go#L1479: 		if gp := getg(); gp == gp.m.gsignal {
		mbitmap.go#L451: 	buf := &getg().m.p.ptr().wbBuf
		mbitmap.go#L511: 	buf := &getg().m.p.ptr().wbBuf
		mbitmap.go#L1246: 	getg().m.traceback = 2
		mbitmap.go#L1334: 	buf := &getg().m.p.ptr().wbBuf
		mbitmap.go#L1394: 	buf := &getg().m.p.ptr().wbBuf
		mbitmap.go#L1883: 	if gp := getg(); gp.m.curg.stack.lo <= uintptr(p) && uintptr(p) < gp.m.curg.stack.hi {
		mcheckmark.go#L85: 		getg().m.traceback = 2
		mfinal.go#L183: 	gp := getg()
		mgc.go#L309: 	p := getg().m.p.ptr()
		mgc.go#L558: 		work.sweepWaiters.list.push(getg())
		mgc.go#L635: 	if gp := getg(); gp == mp.g0 || mp.locks > 1 || mp.preemptoff != "" {
		mgc.go#L923: 	getg().m.preemptoff = "gcing"
		mgc.go#L957: 		getg().m.preemptoff = ""
		mgc.go#L1050: 			gcw := &getg().m.p.ptr().gcw
		mgc.go#L1052: 			wbBufFlush1(getg().m.p.ptr())
		mgc.go#L1378: 	gp := getg()
		mgc.go#L1884: 	gp := getg()
		mgc.go#L1953: 	gp := getg()
		mgcmark.go#L217: 			userG := getg().m.curg
		mgcmark.go#L418: 	if getg() == gp.m.g0 {
		mgcmark.go#L421: 	if mp := getg().m; mp.locks > 0 || mp.preemptoff != "" {
		mgcmark.go#L652: 	gcw := &getg().m.p.ptr().gcw
		mgcmark.go#L720: 	gp := getg()
		mgcmark.go#L838: 	if gp == getg() {
		mgcmark.go#L855: 	p := getg().m.p.ptr()
		mgcmark.go#L1158: 	gp := getg().m.curg
		mgcmark.go#L1288: 	gp := getg().m.curg
		mgcmark.go#L1575: 		gcw := &getg().m.p.ptr().gcw
		mgcmark.go#L1604: 			getg().m.traceback = 2
		mgcmark.go#L1708: 	gcw := &getg().m.p.ptr().gcw
		mgcpacer.go#L709: 	gp := getg()
		mgcscavenge.go#L361: 	s.g = getg()
		mgcscavenge.go#L421: 	if getg() != s.g {
		mgcscavenge.go#L467: 	if getg() != s.g {
		mgcscavenge.go#L578: 	if getg() != s.g {
		mgcsweep.go#L271: 	sweep.g = getg()
		mgcsweep.go#L353: 	gp := getg()
		mgcsweep.go#L462: 	gp := getg()
		mgcsweep.go#L501: 	gp := getg()
		mgcsweep.go#L677: 		getg().m.p.ptr().trace.reclaimed += uintptr(nfreed) * s.elemsize
		mgcwork.go#L476: 		gp := getg().m.curg
		mheap.go#L1083: 	pp := getg().m.p.ptr()
		mheap.go#L1108: 	pp := getg().m.p.ptr()
		mheap.go#L1140: 	pp := getg().m.p.ptr()
		mheap.go#L1171: 	gp := getg()
		mheap.go#L1679: 	gp := getg()
		mheap.go#L2119: 		work.strongFromWeak.q.pushBack(getg())
		mprof.go#L543: 	gp := getg()
		mprof.go#L702: 	gp := getg()
		mprof.go#L772: 	if gp := getg(); gp.m.locks == 1 && gp.m.mLockProfile.cycles != 0 {
		mprof.go#L807: 	gp := getg()
		mprof.go#L1374: 	ourg := getg()
		mprof.go#L1483: 	if getg().m.p.ptr() == nil {
		mprof.go#L1578: 	gp := getg()
		mprof.go#L1704: 		gp := getg()
		mprof.go#L1708: 			g0 := getg()
		mstats.go#L777: 	if pp := getg().m.p.ptr(); pp != nil {
		mstats.go#L806: 	if pp := getg().m.p.ptr(); pp != nil {
		mwbbuf.go#L170: 	if getg().m.dying > 0 {
		mwbbuf.go#L174: 		getg().m.p.ptr().wbBuf.discard()
		mwbbuf.go#L181: 		wbBufFlush1(getg().m.p.ptr())
		os_linux.go#L389: 	getg().m.procid = uint64(gettid())
		os_linux.go#L397: 	getg().m.procid = 0
		os_linux.go#L609: 	mp := getg().m
		os_linux.go#L762: 		releasem(getg().m)
		os_linux.go#L824: 	gp := getg()
		os_linux.go#L847: 	releasem(getg().m)
		os_linux.go#L861: 	gp := getg()
		panic.go#L63: 	gp := getg()
		panic.go#L77: 	gp := getg()
		panic.go#L273: 	gp := getg()
		panic.go#L388: 	gp := getg()
		panic.go#L483: 	gp := getg()
		panic.go#L750: 	gp := getg()
		panic.go#L818: 	gp := getg()
		panic.go#L863: 	gp := getg()
		panic.go#L940: 	gp := getg()
		panic.go#L1021: 	gp := getg()
		panic.go#L1238: 	gp := getg()
		panic.go#L1274: 	gp := getg()
		panic.go#L1321: 	gp := getg()
		panic.go#L1423: 	gp := getg()
		preempt.go#L106: 	if mp := getg().m; mp.curg != nil && readgstatus(mp.curg) == _Grunning {
		preempt.go#L303: 	gp := getg()
		print.go#L66: 	mp := getg().m
		print.go#L76: 	mp := getg().m
		print.go#L90: 	gp := getg()
		proc.go#L148: 	mp := getg().m
		proc.go#L197: 		inittrace.id = getg().goid
		proc.go#L315: 	exithook.Goid = func() uint64 { return getg().goid }
		proc.go#L329: 	forcegc.g = getg()
		proc.go#L370: 	gp := getg()
		proc.go#L507: 	gp := getg()
		proc.go#L558: 	g := getg()
		proc.go#L595: 	me := getg()
		proc.go#L620: 	gp := getg()
		proc.go#L804: 	gp := getg()
		proc.go#L883: 	thisg := getg()
		proc.go#L925: 	gp := getg()
		proc.go#L1429: 	gp := getg()
		proc.go#L1543: 	casGToWaitingForSuspendG(getg().m.curg, _Grunning, waitReasonStoppingTheWorld)
		proc.go#L1550: 	gp := getg()
		proc.go#L1653: 	casgstatus(getg().m.curg, _Gwaiting, _Grunning)
		proc.go#L1776: 	gp := getg()
		proc.go#L1818: 	gp := getg()
		proc.go#L1875: 	gp := getg()
		proc.go#L1891: 	mp := getg().m
		proc.go#L2011: 		gp := getg().m.curg
		proc.go#L2045: 	pp := getg().m.p.ptr()
		proc.go#L2143: 	p := getg().m.p.ptr()
		proc.go#L2187: 	gp := getg()
		proc.go#L2484: 	mp := getg().m
		proc.go#L2591: 	g := getg()
		proc.go#L2612: 	return uintptr(unsafe.Pointer(getg().m))
		proc.go#L2769: 	if gp := getg(); gp != nil && gp.m != nil && (gp.m.lockedExt != 0 || gp.m.incgo) && GOOS != "plan9" {
		proc.go#L2795: 		releasem(getg().m)
		proc.go#L2799: 	releasem(getg().m)
		proc.go#L2889: 	gp := getg()
		proc.go#L2911: 	getg().m.spinning = true
		proc.go#L3147: 	gp := getg()
		proc.go#L3176: 	if mp == getg().m {
		proc.go#L3193: 	gp := getg()
		proc.go#L3228: 	mp := getg().m
		proc.go#L3269: 	mp := getg().m
		proc.go#L3653: 	p := getg().m.p.ptr()
		proc.go#L3674: 	pp := getg().m.p.ptr()
		proc.go#L3867: 	gp := getg()
		proc.go#L3937: 	pp := getg().m.p.ptr()
		proc.go#L3986: 	mp := getg().m
		proc.go#L4075: 	gp := getg()
		proc.go#L4088: 	mp := getg().m
		proc.go#L4291: 	mp := getg().m
		proc.go#L4361: 	gp := getg()
		proc.go#L4411: 	gp := getg()
		proc.go#L4517: 	gp := getg()
		proc.go#L4560: 	gp := getg()
		proc.go#L4637: 	gp := getg()
		proc.go#L4762: 	gp := getg()
		proc.go#L4865: 	gp := getg().m.curg
		proc.go#L4895: 	gp := getg().m.curg
		proc.go#L4940: 	msigrestore(getg().m.sigmask)
		proc.go#L4994: 	gp := getg()
		proc.go#L4999: 		pp := getg().m.p.ptr()
		proc.go#L5291: 	gp := getg()
		proc.go#L5319: 	gp := getg()
		proc.go#L5330: 	getg().m.lockedInt++
		proc.go#L5343: 	gp := getg()
		proc.go#L5366: 	gp := getg()
		proc.go#L5376: 	gp := getg()
		proc.go#L5466: 	getg().m.mallocing++
		proc.go#L5541: 	getg().m.mallocing--
		proc.go#L5554: 	gp := getg()
		proc.go#L5642: 	getg().m.p.ptr().timers.take(&pp.timers)
		proc.go#L5678: 			mp := getg().m
		proc.go#L5766: 	gp := getg()
		proc.go#L5875: 	gp := getg()
		proc.go#L5905: 		trace.ProcStop(getg().m.p.ptr())
		proc.go#L5913: 	gp := getg()
		proc.go#L6325: 	if mp == nil || mp == getg().m {
		proc.go#L7106: 	gp := getg()
		proc.go#L7126: 	gp := getg()
		proc.go#L7177: 	if p := getg().m.p.ptr(); !runqempty(p) {
		proflabel.go#L43: 	getg().labels = labels
		proflabel.go#L57: 	return getg().labels
		rand.go#L134: 	mp := getg().m
		rand.go#L192: 	mp := getg().m
		rdebug.go#L18: 	gp := getg()
		runtime.go#L235: 	gp := getg()
		runtime1.go#L38: 	gp := getg()
		runtime1.go#L604: 	gp := getg()
		runtime1.go#L611: 	gp := getg()
		rwmutex.go#L89: 				m := getg().m
		rwmutex.go#L124: 	m := getg().m
		select.go#L293: 	gp = getg()
		sema.go#L133: 	gp := getg()
		sema.go#L250: 		if s.ticket == 1 && getg().m.locks == 0 {
		sema.go#L286: 	s.g = getg()
		sema.go#L573: 	s.g = getg()
		signal_unix.go#L330: 	getg().m.profilehz = hz
		signal_unix.go#L417: 	return getg()
		signal_unix.go#L635: 	gsignal := getg()
		signal_unix.go#L899: 	gp := getg()
		signal_unix.go#L1320: 	mp := getg().m
		signal_unix.go#L1341: 	nmask := getg().m.sigmask
		signal_unix.go#L1355: 	if getg().m.newSigstack {
		signal_unix.go#L1365: 		restoreGsignalStack(&getg().m.goSigStack)
		signal_unix.go#L1410: 	gp := getg()
		signal_unix.go#L1430: 	gp := getg().m.gsignal
		signal_unix.go#L1453: 	gp := getg()
		stack.go#L340: 	thisg := getg()
		stack.go#L447: 	gp := getg()
		stack.go#L638: 				getg().m.traceback = 2
		stack.go#L881: 	gcController.addScannableStack(getg().m.p.ptr(), int64(newsize)-int64(old.hi-old.lo))
		stack.go#L977: 	thisg := getg()
		stack.go#L1201: 		if !(gp == getg().m.curg && getg() != getg().m.curg && s == _Grunning) {
		stack.go#L1212: 	if gp == getg().m.curg && gp.m.libcallsp != 0 {
		string.go#L132: 	stk := getg().stack
		stubs.go#L31: func getg() *g
		time.go#L288: 	gp := getg()
		time.go#L659: 	gp := getg()
		time.go#L916: 	force := ts == &getg().m.p.ptr().timers && int(zombies) > int(ts.len.Load())/4
		time.go#L942: 		force = ts == &getg().m.p.ptr().timers && int(ts.zombies.Load()) > int(ts.len.Load())/4
		time.go#L1015: 		tsLocal := &getg().m.p.ptr().timers
		time.go#L1063: 		gp := getg()
		time.go#L1120: 		gp := getg()
		trace.go#L375: 			me := getg().m.curg
		trace.go#L790: 		if getg().racectx != 0 {
		trace.go#L793: 		getg().racectx = getg().m.curg.racectx
		trace.go#L796: 		defer func() { getg().racectx = 0 }()
		traceback.go#L134: 	if ourg := getg(); ourg == gp && ourg == ourg.m.curg {
		traceback.go#L1095: 	gp := getg()
		traceback.go#L1114: 	mp := getg().m
		traceback.go#L1249: 	curgp := getg().m.curg
		traceback.go#L1273: 		if gp.m != getg().m && readgstatus(gp)&^_Gscan == _Grunning {
		traceback.go#L1629: 	if panicking.Load() > 0 || getg().m.curg != getg() {
		traceback.go#L1649: 	if panicking.Load() > 0 || getg().m.curg != getg() {
		traceruntime.go#L263: 	if getg().m.trace.seqlock.Load()%2 == 1 {
		traceruntime.go#L451: 	gp := getg().m.curg
		tracestack.go#L44: 		mp = getg().m
		tracestack.go#L59: 				if getg() == gp || mp.curg == gp {
		tracestack.go#L84: 		if getg() == gp {
		tracestack.go#L92: 		if getg() == gp {